import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import * as Echarts from 'echarts';
import 'element-plus/dist/index.css'
import App from './App.vue'
import store from './stores'
import router from './router'
// main.js 或 App.vue
import '@/assets/Layout.scss';
const app = createApp(App)

app.use(createPinia())
app.use(store)
app.use(router)

app.component('e-charts', Echarts)
app.config.globalProperties.$echarts = Echarts
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')
